﻿using System.ComponentModel.DataAnnotations;
using PortalWeb.Business.Entity;
using PortalWeb.I18N;

namespace PortalWeb.Areas.Admin.Models
{
    public class EditUserViewModel
    {
        // Allow Initialization with an instance of ApplicationUser:
        public EditUserViewModel()
        {

        }

        public EditUserViewModel(ApplicationUserModel user)
        {
            UserName = user.UserName;
            Email = user.Email;
            NickName = user.NickName;
            PhoneNumber = user.PhoneNumber;
            Id = user.Id;
        }

        [Required]
        public string Id { get; set; }

        [Required]
        [Display(ResourceType = typeof(Resources), Name = "UserName")]
        public string UserName { get; set; }


        [Required]
        [Display(ResourceType = typeof(Resources), Name = "Email")]
        public string Email { get; set; }

        [Display(ResourceType = typeof(Resources), Name = "NickName")]
        public string NickName { get; set; }

        [Display(ResourceType = typeof(Resources), Name = "PhoneNumber")]
        public string PhoneNumber { get; set; }
    }
}